//  新增(修改)用药方案
//  TabletPlanViewController.h
//  yilutongxing
//
//  Created by ios-21 on 17/4/16.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RPMedicinePlan.h"

@protocol TabletPlanViewBackDelegate <NSObject>
@optional
-(void)backTabletPlan:(RPMedicinePlan*)plan index:(long)index;
-(void)updatePlanFor:(RPMedicinePlan*)plan index:(long)index;//用于更新已有方案
-(void)addPlanFor:(RPMedicinePlan*)plan;//用于添加新的方案

@end


@interface TabletPlanViewController : UIViewController
@property(strong, nonatomic) id<TabletPlanViewBackDelegate> delegate;
@property(strong, nonatomic) NSString *__title;
@property(assign, nonatomic) long index;//plan数据在上级界面数组中的序号,返回数据时用到
@property(strong, nonatomic) RPMedicinePlan *plan;
@property(assign, nonatomic) BOOL isOnlyLocal; //保存数据时是否仅需要保存本地
@property(assign, nonatomic) BOOL isAdd;//是否新增
@end
